package com.yuxi.Dao;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.yuxi.Entity.PrisonRole;
import com.yuxi.Entity.PrisonStructure;
import com.yuxi.Request.Page;


/**
 *监狱角色操作接口
 * @author hunter
 * @version 1.0
 * 2016/07/18
 */

@Repository
public interface PrisonRoleDao {
	/**
	 * 通过prisonRoleId获取PrisonRole
	 * @param 	prisonRoleId
	 * @return PrisonRole 
	 * */
	public PrisonRole  getPrisonRole(Integer prisonRoleId);
	/**
	 * 添加一个PrisonRole  并返回添加的实体类
	 * @param 	prisonRoleId
	 * @return PrisonRole 
	 * */
	public PrisonRole addPrisonRole(PrisonRole pRole);
	/**
	 * 删除一个prisonRole  并返回删除的实体类
	 * @param 	pRole UserInfo实体类
	 * @return PrisonRole
	 * */
	public void deletePrisonRole(PrisonRole pRole);
	/**
	 * 修改一个PrisonRole  并返回修改的实体类
	 * @param  pRole UserInfo实体类
	 * @return PrisonRole 
	 * */
	public void modifly(PrisonRole pRole);
	/**
	 * 获取所有的监狱角色
	 * @return List<PrisonStructure> 
	 * */
	public List<PrisonRole> getAllPrisonRole();
	/**
	 * 通过StructureId获取PrisonRole
	 * @param 	StructureId
	 * @return PrisonRole 
	 * */
	public List<PrisonRole> getRoleByStructureId(PrisonStructure pStructure);
	

}
